package com.start.workflow.vo;

import com.alibaba.fastjson2.JSONObject;
import com.start.common.std.IStartUserKey;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.List;

@Data
 @Schema(name="StartActiviti")
public class StartActiviti implements IStartUserKey {


     @Schema(name="业务数据id")
    private String businessDataId;
    /**
     * 流程表单数据
     */
    private JSONObject businessFormData;
     @Schema(name="业务表单配置id")
    private String businessFormId;

     @Schema(name="启动人用户所在体系")
    private String startUserType;
     @Schema(name="用户id")
    private String userId;

     @Schema(name="下一用户任务节点审批人", description = "仅适用于自定义审批人")
    private List<StartCustomActAuthUser> nextTaskAuthUser;


     @Schema(name="流程业务变量")
    private JSONObject businessVariables;


    /**
     * 获取用户key 标准 用户体系:用户id 如：admin_user:123456dasfd
     *
     * @return
     */
    @Override
    public String getStartUserKey() {
        return startUserType + ":" + userId;
    }
}
